const fn = (state = {
  bannerlist: ['1','2'],
  list: []
}, action) => {
  const { type, data } = action;
  switch (type) {
	case 'CHANGE_BANNER_LIST':
	  const list = state.list
	  state = {
		bannerlist: data,
		list: list
	  }
	  return state;
	case 'CHANGE_PRO_LIST':
	  const bannerlist = state.bannerlist
	  state = {
			bannerlist: bannerlist,
			list: data
	  }
	  return state;
	default:
      return state;
  }
}

export default fn;